add support for reading options from a yaml config file
update class StatsConfig so that it accepts parameters

(would be useful in the tests)
fix sinks attribute should be specfic to the instance

(not shared accross all classes instances)
fix failing tests