added self test debug output and changed message time counter to system timestamp