refactored, added unit testing, functions to coordinator

added unit tests
watchlist flow for tracking damaged workers
cleaned up coordinator and made coordinator_flow to hold functions for processing requests