Fix a rare buffer underun bug when present("1") is called.

Also added a comprehensive test.
Update efun doc for present.
Deleted text and html version of doc. Migrate nroff version to /doc.