NEW: Generate output by sizebins; bugfixes