Added PID tuning to library