Fixed xsb.parse
UI code moved to ui.py