added a bunch of content from the google doc to the paper and typeset most equations