more flexibility in create_filePB_cfg.py and minor improvements