Javadoc added

Added Javadoc comments