added appendix containing code
moved xml file code to appendix