added a train function for training multinomial and a classify function for classifying using multinomial. Also refactored stuff
moved warpImage function