FBKin: refactoring. Gaussian function is called from libmath_func. UI changes