replaced any usage of 'printf' with 'clog'

clog is more appropriate for logging