Added Javadoc and removed unused methods
Javadoc
Javadoc
Javadoc
Formatting
Catch exception