Add compact output, close #23