Documentation update. Better error handling.