Amend readme.md; fix minor bug in main program.