added uniqueness based on row.
also updated row so it only appends one instead of double on first go.
Merge pull request #3 from damiandennis/uniqueFix

added uniqueness based on row.