MASSIVE re-structuring of the code base for the setup and charge loops. Now everything is separated into functions and everything runs through the main program loop without very many external loops. TEST THOROUGHLY NOW.