Added option to subtract dark noise from raw data