Added get_root method -- Josh's Code Review
Formatting changes