Added macro PORT_TERM()
Added macros to support Debug module: PORT_C_LINE and PORT_C_FILE
Debug module is a bit more elaborate in reporting messages
Some small bugfix