          "hoho"
          File.close! filepath
 
+         {_, fd, filepath} = Radpath.mktempfile("/home/lowks/Downloads")
+         IO.write fd, "hoho"
+         File.read! filepath
+         "hoho"
+         File.close! filepath
+ 
      """
 
      @spec mktempfile(bitstring, bitstring) :: bitstring
-     def mktempfile(ext, path) when is_bitstring(path) and is_bitstring(ext) do
+     def mktempfile(ext \\ ".tmp", path) when is_bitstring(path) and is_bitstring(ext) do
         # Tempfile.get_name("", [ext: ext, path: path])
         Temp.open %{suffix: ext, basedir: path}
      end
+
     @doc """
     To create a temp file at a certain location without extension and write to it:
     ## Arguments


        Radpath.mktempdir("/home/lowks/Downloads")

    """

    @spec mktempdir(bitstring) :: none
    def mktempdir(path) when is_bitstring(path) do
      Temp.mkdir(%{basedir: path}) |> tap({_, path_name} ~> path_name)
    end


         File.close! filepath
    """

   @doc """
    To create a temp dir with out without arguments:

        Radpath.mktempdir

    To create a temp dir at a specific location:

    ## Arguments
