Gibbs up and running

The Gibbs sampling now seems to be up and running, for classic400 at
least.  Also added code to save n and q after a run.