Adding curl result object and adding getters and setters

changing methods to function as getters and setters and adding a curl
result object