Removed extraneous unused variable and reformatted code to current specs

Fixes #228 

Removed unused variable discovered through static code analysis.