Fix error in Charles Darwin; simplify some debug statements; fix some printfs to POSIX standard