Problems with data output

THAP:
INT1 0
INT0 1

That's the cause of the garbage data. Pins 0 and 1 on the Uno are used for Serial communication with your PC over USB so you should avoid connecting anything to them. If you do connect things to them you can expect them to interfere with serial communication including uploading code to the Arduino.

If you look at the sketch:

/*      Uncomment If Attaching Interrupt       */
//int interruptPin = 2;                 // Setup pin 2 to be the interrupt pin (for most Arduino Boards)

it expects you to connect the interrupt pin to pin 2 on your Uno and then uncomment the line.