updating man.
clean up the code.
adding gendoc.hs.