Changed all printf to NSLog, added code to help debug, as shown in video.