Change indexing in text2 so any slice of training data can be easily selected. Improvements to hog_project.