Added Java API documentation