fixed some typos and added missing footnotes