parse out headings from document