add java docs comments