minor formatting fixes
Add hook and function to allow modules to register