Railway history 'rewritten' after hidden tracks discovered i