Added window class
Formating
Added parametized constructor to window class