Addedd methods for UserInterface class, changed from streams to contains, regex variables changed to class variables