tweaks to make the API play nicely with geogebra. Wait for geogebra to announce that it is initialized.
Changed paths: