better docs, better email, custom action, setuid/setgid

custom actions can be taken during failure cases, default
is now SIGABRT

a UID and GID can be supplied to drop privileges