gathered all error constructors in errors.coffee

and got rid of die()
described what errors are thrown in doctests

(wherever appropriate)
using error constructors from src/error.coffee