Improved formatting and fixed a bug in R.Component and R.Root.