started install_mran function, not quite done yet, some more bugs to work out, #44