updated script and README and added `.gitignore`