compatibility fixes

* source file was using a mix between tabs & spaces, converted to spaces
* changed reserved 'class' keyword usage.
* removed unused variables
Merge pull request #6 from epochcoder/master

compatibility fixes