Code cleaning
Fixed bug that would error when no accounts in data file. Also added creation of correct JSON file if the file does not exist initially