added comments trap.[ch]

Added comments as doxygen style into trcp.[ch]