refactor to slightly cleaner code.
deprecated a function (comments)
Merge branch 'master' of https://github.com/wvulibraries/engineAPI