Add a function to get the stats from datasetsinfo.py if present, otherwise compute them.
Use new function from getDatasetInfo rather than ds_stats directly
Remove useless comment
Reorganize and revamp.