added statistics, streamlined files