Updates to passgen.py and README.md, cleaned up some code and some minor updates.