javadocs added, checkstyle