Add comments to function describing what they do and add operator<< overload for the QDigest class