Added appendix B listings
Fixed up some listings