I am trying to add a custom Order Total Module to keep track of my total costs for the order. Can anyone show me where to get a reference module that someone wrote so I can modify instead of trying to figure out how it all works?

I saw something in the search about an ot_loyalty module, but have not been able to find the contrib anywhere on the site.