Added the mfmods.lua file and added some new functions to the mfevents.lua file
- Also renamed a few variables to avoid later typos