added acceleration, friction and drag to dynamics