ENH: allow to use file object as config file (instead of filename).

+ added some doc