Added structure.
Moved requires session.
Added web socket documentation.