Fixing creation and adding clean_dir file