improve axis detection

instead of searching for an axis with value != zero, looks for a delta
of more than 10% in axis value. The reference value for each axis is
captured when the user clicks the button to set an axis
Merge pull request #12 from vitorboschi/master

improve axis detection