downloaded and used json library to make json file writes of models more readable