Remove self-dependencies from output

Closes #41.
Merge pull request #42 from VividCortex/issues/41-self-dependency

Remove self-dependencies from output