Added Javadoc comments to all methods