add globals, prototypes
update main, StringInput
update load_files()