Improve Javadoc

Add documentation for all public elements. Fix missing parameters.