Added namespaces

Namespaces added and changed composer.json.