rfc5: clarify mod_main usage + cleanup