Fix formatting issue, require curl, throw a specific exception on curl fail
Added unit itests