Create read/write functions for feature vector.