Added appendix 2. Listings separated by type. Refactored source code listings. Closes #108. Closes #109.