Modified the module registry (also refactored it from modulehelper to moduleregistry) and made modules have multiple module types