Update all Java code with comments and details