added debug printing to cup
fixed printing to output and not error when exception (syntax error) so output to file in commandline works