Fixed mouse maxrate etc.
Some cleanup etc.