renamed PresenceBot to PresenceServer, added comments, cleaned up code