added arguments for excluding directories, changed directory format for saving to S3