Add javadoc for some classes

javadoc:
 - Added to some public methods.

Refactoring:
 - Removed redundant classes and methods.