createFeatures now computes adjacency counts in superpixels.

also fixed some bugs