adding Rdm file, minor changes to the script