Railway maintenance and contracting machines