Moved all code definitions into the header file, which is ugly but it fixes what is probably a compiler bug when using the PJRC Encoder library as a class instance object. More details on the bug here: http://forum.pjrc.com/threads/26730-Odd-behavior-when-wrapping-Encoder-inside-another-class