The old code won’t help you much since smartthings has changed to an entirely new architecture written in a different programming language, and with a very different communication structure.
Here’s the official tutorial for writing an edge Driver (new Architecture) for a Z wave device. I’m not sure how helpful that will be, but it’s a place to start.
Tutorial | Creating Drivers for Z-Wave Devices with SmartThings Edge
After that, you can ask more questions in the “writing edge drivers“ section of the forum: