RR: extending installation of Master with directories and refactoring of script files.