added getRoom and getUserName functions