changed as.matrix to data.matrix(): this converts factors to
numeric.
added note at the top about factors in X