cleaned for appendix
added labels and references to parts 1..5