Added the display of branch heads and HEAD. It is at the point of needing some refactoring. There's a bit too much manual string manipulation.