Try to guarantee registering the outputs
Use System.Posix.Files.fileExist
Add Lib.Printer
Add sigint handling
Add setBuffering
Use Printer and add some more prints