Combination of all code

Under main directory there are "track.py" and "track_functions.py" that are new code.