Added arrowhead to transitions based on vector calculation. Fixed problem where transitions were being saved with incorrect metadata