A fellow Saab enthusiast, Karlis, has kindly offered to work on my crappy code and make it better :)
He's posted his new code up on GitHub here
https://github.com/kveilands/SAAB-CDC/releases/tag/v1.0
Everyone should buy him a beer for his hard work, dealing with my bad code-writing abilities :)