implemented the linear interpolation function in AControl.cpp and made a couple other minor changes