refactor level logic into misc
added level_for_summary and class_for_summary misc utils
finish rolling out colourised summaries