Addresses issue #36
This fix ensures that dialog boxes are centered on the screen when requested.
Merge pull request #40 from thehogfather/issue36

Addresses issue #36