Fix paths, namespaces and autoloading