Add Javadoc

Added Javadoc to all the API calls