Move expand_macros to separate file
Set built-in macros
Fix constness in graph methods
Add first automatic macro