added JAVA_OPTS and cleaned up comments