Add some more printouts and explaining comments