SMS: Functionals of finite Riemann surfaces