Well, I'd probably start by getting a very simple sketch working, just using "loop" to do a "digitalRead" of the signal pins from the decoder, and using the serial monitor to print the results.
Shouldn't be more than about 20 lines.
Don't forget to set the baud rate of the serial line in "setup", and initalise the pins as "INPUT"