added is_root() method
updated documentation