- added zero cross and rev counting to encoder