further development of rate controller. After initial tests it seems to be working correcly but needs some tuning and refining in handling special cases like saturations.