Started work on saving to a macros.json file and input saving