Scala implementation of Merthese (with Merthing@Kerm extensions)