Fixed an issue with calling stop more than once on a node. Also removed all forEach's in favour of using while loops.
Updating to version 0.3.1