Stat File Upgrade

Format of stat file improved. More stats recorded in stat file.