split main function out of parser.leg into separate file to allow packaging of prog and library
Merge pull request #2 from fordmason/master

separated out main() function from parser.leg