updated doc on error as last argument
Merge pull request #26 from ganeshten/errordocupdate

updated doc on error as last argument