Update Tools.java, Tutorial1.java
Fixed remaining errors.