Fix caching of integrator
Add time logging
Move background subtraction to own package