version 1.0 submitted to CRAN