finished code to load profiles, refactored some code for future saving of profiles - quit now goes to main menu rather than to system.exit(0)