[cleanup] removed superfluous method
[cleanup] removed instance-of test
[cleanup] did some things mentioned in the comments of #90:

- transformed intellij "javadoc" to real javadoc
- removed useless comments
- fixed some typos
- formatted code
- organized imports