added script for setup of genre attribution and added associated
resources
added and tested n-gram function