Fixed bug in sample.states and added document for regression with AR(p) errors