Namespaces and PHPDoc

Now using namespaces.
Added PHPDoc comments to all elements.