added track.m class to manage the track data better. Created functions that return track objects