some minor edits, section 4 and references, and a shiny new appendix