minor edits and added link to java api