Minor typos and edits on docs.
Improved docs about errors module.
Added test case for errors module.