All API Endpoint covered, added comment, better error handling and added javadoc