More error checking & indent corrections

corrected pull #40 for curl_info after curl_exec (ooops!)
Error checking addition to JSON & Curl + cosmetic indent corrections on PestJSON.php