finished window creation process

wndclasses structure, window procedure callback, register class and
create window, centering the window and close when ESC key pressed