appendix added
minor edits in response to comments from Martin.
more minor edits