writeJagsFile function

Writes BUGS file for processing by JAGS