Dev

is_active_trail and active_trail_nodes function added.