Added documentation. Changed some namespaces.