Output changes.

- Removed some debug output
- Moved error output to stderr
- Dumped result to stdout