Cleans up bakground updating
Splits sub_routines into several lib files
Formating: renames ball vector
Major cleanup