Simplified code_lines being either a str or dict, and improved logging -
closes #128