added getPerpendicular function with swivel functions
tested magnetometer with offsets based on range seen
improved more distance details
Merge remote-tracking branch 'upstream/master'