Outputting UI variables to JSON file

Elizabeths
Completed algorithmic code made easy to implement to UI

Elizabeths