Add errors file.
Refactor error handling, closes #6.

Also add colors dependency.