Add namespaces and autoload for classes