Remove env vars

Refactor to remove reliance on env vars in this external module.
Allow options to be passed in to some methods on a case by case basis to set date string format