Core cpp finished

- js formulas
Some more changes