Cleaned up documentation and removed some R CMD check warnings