Added unit tests (testthat) and cleaned up documentation a little