Adding layer names to the statistics output (closes #1)