Add weighted and min_obs to from_files.