DCC may not be filtered correct at the moment. Signal polarity from rail isn't relevant. Library is working with timings only. Pin on Arduino must be Pinchange-interrupt-capable.
You cannot connect an Arduino directly to the track - the signal is alternating ±10V, which would most likely damage an Arduino's 0-5V input pins. Instead, use something like the following: Tested on ...