Minor matrix import correction and variable name edit