@palgon
While the configurator tool and many folks put the M671 command in config.g I put it it bed.g because it is related to the operation of bed.g and nothing else.
It also means if I need to change M671 I edit bed.g and the next time I do G32 the new M671 settings take effect - no need to re-boot the printer to cause config.g to be processed again.
It is just my personal preference and it doesn't change the behavior of bed leveling.
Also remember to set the Z=0 datum (with a single G30) after leveling the bed.
Frederick