added output path configuration. cleaned filename