improve statistics script, remove unnessessary files