Adding renam and make_dir, and refactoring the config.rb