Fixes #33
Fixed base R version dependency (earlier versions were failing).
Updated unit tests.