Made the headings into sections and subsections in tex.