code to do bag of words (using  only pca for moment) - getting about 63% accuracy on all data