Changed nodes to this.nodes.

issue #8
Updated the cascade version of the code.

issue #8