fixed namespace for rstan.
changed param name to "size" to better fit with rbinom.
updated function to calculate model deviance.
flipped around calculation, improved documentation.