Big tidy up, put functions into another tab, finished movement controls and some of the file saving stuff.