Re-architected the man2md code a bit.