Noise removal

Removes nodes which have less than 2 incoming edges.
To be merged after the other PR (relied on it)