Removed some code smells

* missing semicolons
* unused variable