Fix formatting and remove unused code.

This commit fixes various formatting issues and removes useless or unused imports, variables, and methods.
Merge pull request #8 from chaseoes/patch-4

Fix formatting and remove unused code.