Fixed most of the errors on modules due to new use of namespaces.