Don't (mis)use .Fd outside of the synopsis.
some buffer overflow guards and some stylistic cleanups. Also adds manpages. Obtained from: NetBSD