added auto gen code for kalman gain calculation and final error calculation, add MPlexLH as a typedef, added functions to call auto generated code