There was a number of errors so I used our AI friends to check it and improve it. It also advised to create a new driver for my dual scan cat flap as it has a few more features. Seems to be running smoothly right now so i'll monitor.
If anyone is using it and wants the update let me know.