Improved API docs, trimmed unused code in R.App.js