Update macro settings, add import debugging, case insensitive replacement