Ajd chapter10

Chapter 10
I'd stick to 'positive' variable names rather than 'negative' (e.g `$debug_enabled` instead). It avoids brain bending conditionals which I'm sure you may find in various unnamed pieces of payment software.