added listings as package
added definitions to appendix