Commentary for my code

javadoc and some more