Updated doco with new exports element and new RunOptions elements.
Fixed some anchors.
Sorted out all the vars/var elements and examples.