Merge pull request #1 from tomfurrier/master

merge of initial version
curl http code testing and better logging