using doxygen. documented macros. need to document functions, figure out rtf output, and write general man page.