Hi Jim it's nothing to do with the g code in a program. It relates to the Zero Z tool macro.
All those blocks of code are normally put in by Cam software, which is so important that you understand what's happening.
Scott if you let me have your address i will send you the bill

No i don't blame you in the slightest Scott
I mentioned it on here so that others will become aware and also it should be the default setting that all offsets are cancelled maybe the top guys will sort this out/answer the question.
Phil