New javadoc
Added documentation