Fix Tesselation error and more bugfix, updated export, calculated last
number of pi.