Fix/exclude headings, closes #19

I can add extra test cases if that's a concern.