r388: cleanup mem_process_seqs() interface

Print output outside the function and allow to feed insert size distribution.
r389: return non-zero upon errors