Compute stdevs for each column of data instead of for the entire dataset (not sure whether this is the right thing to do in all cases). Introduce normalize/restore method pair. Update docstrings.