Refactored createFeatureVector, fillFeatureVectors, writeInstance, and
addFeatures to allow a single point-of-entry for all methods. This
minimises accidentally forgetting to comment or uncomment code.
Fixed <root-type> and - confusion.
Minor change to whether  visual features are processed. Saves memory.