Improved java documentation