Removed some old unused code
Added drawSprite(), javadoc and cleaned up the code