Fixed the delegate and added code to convert NSData to NSString
ignore