Update UIClass.java

Added writeFile method, and minor changes to printAllNoTimeDelay method