Fixed bug in counting parameters for calculation of AIC. Previously undercounted. Bug raised by Graham Slater - thanks.