Create a module loader for the main module