fixed javadoc
made classes and methods final where possible