What my coding style looks like.
The application expects Scala distribution installed and set up. Files to merge should be placed in a single folder.
There are also other ways to solve this problem. For example a more concise code for Apache Spark can be used.