* add validateflow function * cleaner code * preprocess json * cleaning * create specific package * cleaning * add tests