Refactored outputHeader to use a magicpen format