complete refactoring:
- object oriented
- progress bar
- dpfit copied inside
- Newton method for 3sigma flux ratio