added simple COM logging
fixed size of int (on Uno it is 16bit, Due has 32 bit) ... using long instead