Javadoc added

Added some javadoc