Wrote error documentation.