Hardware and software for single-molecule fluorescence analysis