Modules fix+check components

Added library functions to run the check and fix subcommands for modules.