Added handling to remove NSLog from release builds and added error messa...

...ges for network failures.