added unit test, updated implementation to take array of items to remove from env
cleaned up style