add more docs, java docs