add source comment about `write_mainfile_protector()`