Added documentation to the as.data.frame and as.matrix functions.