To make this more usable for a wider range of people/experiments, it would be nice to * Put as much logic as needed into small library functions, that are just used in the command line tools * Have clear areas, where instrument specifics occur