Added functionality to create and load bag of words vocabulary.