Added debug logging statements to misc source files