Added javadoc. Future javadocs will be added, slowly...