fixed xor rect bug
fixed slow viewport update when just moving mouse
code cleanups, minor bugfixes
code cleanups, comments
code cleanups
added OS detection (needed for hardware accel)
fixed redraw bugs