Fixed a problem with foldr. It would never match many lines so it will crash.
Fixed documentation error in debug.hrl