Automatically takes dark spectrum and subtracts it from measurements. Everything seems to work well and this seems to be stable.
Peak finding implemented. Several bug fixes. Changed the pixel size t int32_t.