add man/Makefile
add man/ to distfiles
keep track of whether channel is open or closed
set pointers to nil at the end of free procs