Stop using retention period config to filter closed workflows.
Code formatting changes based on code review.
Fix docs and comments