Removes dependency on R.
Cleans up documentation.