mb_register reworked, template library creation in mb.mktempl