refactored
added utility functions
added CRAN description