how can anyone expect to be up to speed with the assumptions that your mdoesl require.
the only way Ive found over the years is to take the model into a server and put sample data in and make certain your test conditions are satisfied
(virtually) all sample code I post will almost certainly contain typos, some logic errors and will need debugging. its air code, providing with good intentions but no guarantees it works or is fit for purpose. in essence yer gets what yer pays for...
PS I'd rather be riding on the Tiger 800 or the Norton