 
     defp requests(path) do
         case get(path) do
+            ## TODO: add more cases.
             %Tesla.Env{status: 200, headers: headers, body: body} -> %{:headers => headers, :body => body}
             %Tesla.Env{status: 500, headers: headers, body: body} -> %{:headers => headers, :body => body}
             %Tesla.Env{status: 404, headers: headers} -> %{:headers=> headers, :error => "Error: 404 page not found."}

        end
    end

    

    ## TODO: add get_cmd for output, archive, compress and compression level
    def get_cmd(multihash) when is_bitstring(multihash) do
        requests("/get?arg=", multihash)


    ##Currently throws an error due to the size of JSON response.
    def repo_verify do
        requests("/repo/verify")
    end

    #Update function  - takes in the current args for update.
