For usage examples, please, see ru.ispras.modis.tm.scripts.QuickStart
.
For further understanding what the hell is going on and how you can extend it, please, read documentation/userGuide/userGuide.pdf
.
In order to use tm in your project, add to build.sbt
libraryDependencies += "ru.ispras.modis" % "tm_2.11" % "1.0"