Serialize the entire struct returned from the compute_quality_indicators function as part of the response.
Tidy up imports.
Use the correct terminology for the "metrics" parameter.
Force the computation of a normal distribution.
Clean up some code comments.