DSG: add comments and enhance JSON return of stats info