Update CarlStats.py

added a method to generate table and some more modifications