Fixed many warning messages and made some changes to impedanceControl.mdl