Added bash script version of setup code. easier to accommodate ngram setup