added speed adjustment
direction vector and TODO added