A better pdf output and fix part of #73

Fixes empty lists [] from last category, not empty fields.