Created javadocs and refined javadoc comments