Improvements to initialization, centers mouse at window