added attribute method
fixed axis bug
fixed bug in is_root
closest:: and preceding:: working