Custom Line Items/Group in a Custom Module, How?

Check this post for some ideas: