Improved some minor bugs in the Java SDK tutorial