added code for PID controller, added 'settings' command