heavily commented the chunktional.h file and macros