fixed a few bugs in scripts and README.md.