Added java documentation
update with latest code