Fixed require paths to work outside of initial IDE environment.
Finished some in flight refactoring from previous commit to get program in running state.