fixed all headings and document structure
added fixes to latex syntax