Combined code and refactored a bit

Combined your div creation code with mine, refactored the structs into
classes and made separate class files for each. 'mainProgram' is now the
main.