adjust output

- delete debug output
- delete the final msg
- change error msg to stderr