Added support for maximizing the window

Closes #15