Remove unused classes.
Remove unused imports.
Improve type checking.
Add some @SuppressWarnings annotations.
Merge pull request #92 from seintur/code_cleanup