Inserted @end deftypefn to documentation of functions.