Converted mod main class to Scala.
Because we do what we must because we can! (reverted from commit 4337dd991162e5f1aad28e12fb260c2daa0b53c1)