Fixed wrapping errors in source-code appendices; exported bibliography to BibTeX from Mendeley