Refactored. Moved project to Coremod subfolder to prepare for a second
mod in the same repo.