separated making features and codebook, tweaked getFeatures to allow selection by hand field