Updated ui.py
Most functionality is present but I need to smooth out some details
about how the ui processes text changes.
Also changed the names of the relevant input/output text files.