change some print statements to use the printlog subfunction.