Moved tests to appropriate packages.
Added comments to functions and class.

Comments for Java Docs.
Moved tests to appropriate packages.
Generated JavaDocs.