fixed initialization of inport_values, added macros to turn on/of debug