Major Refactor

Split Window Generating Code into Class
Stuff is /less/ hardcoded