Add more error codes and message, reflow some doc comments.

I would err on the side of having too many error codes than too few. ErrPrivKey should be defined above for something like this which is very specific.