Cleaned up code. Corrected script to include ways with a modified node.

TODO: make loops for effecient