Add functions and fix bugs

Add guest and room functions
Fix lots of bugs