Converted a bunch of printfs into log statements.
Changed more printfs to logs.
New version.