Update Javadoc
Fix syntax error in sample code