optional hash of params to Config constructor

This change allows to pass an optional hash of params to the Config constructor