Tweaks here and there. See list.

- Making calc_fppi.py a bit more robust.
- Added a few more settings.
- Added back saving samples for real detector training.
  This is not tested yet and probably needs another commit.