updated code to support M10i dual RE; should work for all M-series
updated unit test for code fix
Merge pull request #221 from jeremyschulman/master

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