Began moving internal functions to separate files.  Basic reporting now works.