How does modding exactly work?

Tom Looman, has a small tutorial and a sample project so you can see how it can work. I found for me personally, was after I downloaded his sample. I created a game using FPS template and then followed his tutorial.