Fixed issue with isOpposite test. It was deciding that the direction was
opposite even though it was going correctly.
Fixes issue #176 and #118
Merge remote-tracking branch 'origin/develop' into develop