Some work on elm_new. Delivers now the same results as elm (old) but much faster and with less lines of code.