added logging option, updated JDK version to 1.7.0.40