tidied up appendix, conclusion, references, and some queries