Fixed some hlint suggestions and set the default position of the window to the center of screen.