Fix the _updateState method.
Path elements are [x, y], not nodes.
Generate lib files.