javadoc, warnings, licenses, formatting

Formatting is no standard java formatting.
Public methods have basic javadoc.