Document macro-expansion stage
Add header to IR dumps
Add docstrings to macro.py
Only dump expanded IR if any macros were expanded
Merge pull request #856 from gmarkall/document_macros

Document macro expansion