add comments and skeleton code on sending detailed error messages back
to clients via the Status Service
add TODO notes, minor code changes and reformat