Add error handling
UNTESTED: Uncouple file options from main.
Add README.md
Added tag v.1 for changeset b1394b7bf773