Add error_handler param
Update docs