Merge pull request #27 from gabriele-v/master

Correctly center windows