Updated userInterface.py, such that it relates to the API.