main has been commented edited slightly
race_track_extension has been slightly optimised and improved