version 1.4 ready for CRAN