Added a debug compilation option to the Makefile
Did the rest of chapter 11 plus the last bonus mark (the "exit" function).