Update

File deletion fixed; number of variables gets written to file.