Remove unused class and minor rename
Print errors to stderr.
Add document about protocol.