Report txt generation
Fix bugs