Please don't post huge programs (in this case 1500 lines) as email text. For those of us who subscribe to the groff digest, it's a pain to scroll past such monsters to see the remaining messages. Big documents are best relegated to attachments, which readers who need them can fetch from the mailing-list. website.
Thanks, Doug