Updated the mod class.

Updated the mod class, now server side. Added getInstance