updated R files, added ngram capability
merged