Fixing mistake in manipulation of imaginary component of [MC,MR] matrix and avoiding several compiler warnings.