Update error reporting. Skipping empty records. Output records statistic.
Update tests and example for empty records and records statistic.