Major clean up of code, added screen resizing.

Cleaned up a lot of code to make it easier to read, change, and
independent of the screen size.