remove nodeStorage property, rename variables, store graph reference
remove unnecessary whitespace