Thanks for sharing nice codes. By the way, I failed to find any method that finds a(x,t) and b(x,t) right away even in your paper (https://www.jstatsoft.org/article/view/v105i04/4421). Can you provide any hints to do that?