Doc-string and error-handling