Fixed basic things.

Fixed the mouse problem at high fps and some smaller bugs.