commented out for now, but some updates to the json parsing...
changing stats to return dict, removing obviously blindly copied and pasted comments