prepared csv for training scores merging
bug fixes and refactoring