Hardware and software improvements in flow-cytometry measurements