Generalized functions and tween groups

Fixed formatting