I had a look in the stan-files, but I can’t really pretend that I understand them.
It is OK to just copy, shows that you can get it working using Rstan. I would have revised their code a bit to get rid of their uniforrn (and stupid) priors, just a few lines extra in their stan-code