finished product
Fixed spacing and minor syntax
fixed some of the file saving and opening