Changed error output, input buffer (for stdin) signed.