added appendix material, tweaked formatting of headings