Fixed wrong pilot value assignement causing bad tunning in some cases. Minor fixes.