Added code to turn to a direction.

This code will turn a motor to a given direction
Added generic values for detection
Fixed spelling mistakes

Direction is a 3rd grade word
Keep function signature what nav excepts