added averaging, killed buffer collision

adapted turning thresholds