Reworked dependency parser so that it can not have empty strings as dependency and nor can it end in a , character.