CURLOPT_WRITEFUNCTION: polished somewhat