changing non-debugging messages from NSLog to printf