Added features to sessions
Removed faulty createSession function
Fixed changing session status

Sessions can now be opened and closed easily