Added appendix describing code