WIP: adding earned yesterday support
Further improvements.
Adding another stat.
Minor formatting improvement.