Add documentation to macros in list.h