Added an other method and fixed javadoc