writing initial features to file.