Create header and source files for all classes.

Move all class code from main.cpp to these new files