Moved the creation of the 'individual' id column higher up in the script.

Added optional line to do na.contiguous, because this was causing problems when I was trying to run an ANOVA later on.
Added script to specify models.