Add csv output format

Convenient format for importing into other applications and for using
with shell scripts

Also fix a minor typo
The space right before {{ result.serial }} is extraneous, isn't it ?