Added doxygen type comments

modefied files : trap.c trap.h