add blank total count in results, rename some keys
csv output support

please test