Update Main.java

1. created writeStdTranscript()