Added default value for err variable.
Cleaned up some grammar.
Merge pull request #338 from syngin/develop

Added default value for err variable.