Allow main function to return 0
Update docs.
Return 1 if any error occurred.

Fix #43
Merge branch 'issue/43'

Fix #43