This is the tweaked code that I used to build my Arduino cw decoder for Arduino day 2015
arduino-cwdecoder