Tweak Magpie_am_I_master logic
Fix script comment headers