fix unescaped regex
fix incorrect Math.exp(getOrElse(0.0)) => 1 treatment; add todos