added java API docs