Fixed type, updated README, code cleanup

Moved glScissor calculations into single method rather than duplicate
the code. Also fixed some warnings due to casting between int <-> float.