add two passes, print out the instructions
remove trailing spaces