Small fixes and increased robustness

- fixed zero division in add_stat_shapes.
- increased robustness of ML fit.
- further cleanup of uncertainty files