Replaced cout with Rprintf and added \dontrun for long examples - for CRAN submission.