n-gram in own file and additional n-gram functionality