Fix issue 50
Merge pull request #51 from Kaiochao/master

Fix issue 50, by centering the window.