fixed some compiler warnings, the mouse issue with wide screen and did some cleanup