Added writing of features to file.