Fixed namespaces, added more server code, added documentation.