Merge pull request #221 from jeremyschulman/master

updated code to support M10i dual RE; should work for all M-series