Programming Structure and Layout

Changed the enitre thing to be according to MVC standards and changed
the layout somewhat.