Good job!
You are to wrap up your changes as a custom module as all changes to files in the var/ directory will disappear once you upgrade to a newer version, install a new module, or just run the redeploy routine.
You will be able to re-use the module for other X-Cart 5 stores and even list it at
http://www.x-cart.com/extensions/addons (if you want
)