added AIC, improved comments