Generalized functions and tween groups

More fixed formatting