move parseCodeContext to separate module, output enhancements