Fixed heading problem

The issue was that a local variable was being updated instead of a
global variable
Added branching functionality to DendriteTip