InventoryList destructor

destructor now outputs to a text file, I am still unable to run the
program like hasnain, but this should work