Adding 'add' argument to show.detfn() and changing function name.
Roxygenation.