compatibility fixes

* source file was using a mix between tabs & spaces, converted to spaces
* changed reserved 'class' keyword usage.
* removed unused variables