Direction in drive function now determined by the distance parameter rather than the power parameter

Changes function parameter names