renamed config, fixed typo, added function to extract target data from filename