Add README and fix shell script bug