Writes

It now Writes to the file and has error checking capabilites. Basically
it shows a red text when the cost is inputed wrong.