Cleaned up old testing stuff
Added mean_var_update to sglib
[wip] Improvement of the operator/tensor_operator functions