adds handling for single line examples, Fixes #12
Merge pull request #13 from bicarbon8/FixForIssue12

adds handling for single line examples, Fixes #12