Add blank lines and "Total"