added getValue() to node
organised code better
merged in updates from original repo