Fixed a typo
Replaced some printfs with NSLogs
Addressed some cross-thread message sending issues