Refactored the Mac code to use event based code and converted both headers over to using string delimiters instead of XML for efficiency, and made the output consistent between both platforms.