Switched some error-handling blocks of code to print to system.out instead of system.err due to system.err messages having line-breaking problems