Fix formatting
Add comments for closing braces
Replace setIndexAndNum and sortLinks methods with countRels
Fix overlapping lines, fix arrow markers in wrong location
Merge pull request #16 from valiantvu/fix/directive

Fix overlapping relationships and misplaced arrow markers