Fix ternary reference
Fix jade reference
More footnote fixes
Merge pull request #9 from contolini/master

Footnotes fix