added tex_mr() function and better support for formula string processing in lm()