Make tsv work
Return doc-specified error type
change tests for new error type
updating docs, slightly