clean up logic and variable names; closes #1213
Merge pull request #1227 from duke-libraries/1213-mets-folder-task

clean up logic and variable names; closes #1213