Added type into termlog
Change termlog and generate stats, missing files