modified few files and added java docs