REST endpoint for /estimate, minor tweaks for previous commits

REST endpoint for /estimate, minor tweaks for previous commits
Same comment as before. Can be `(double) f * (double) f`