Fix main to return 0 not 1

a correct C program should return 0 on successful completion
Merge pull request #2 from lgauthie/robert-branch

Fix main to return 0 not 1