big cleanup of node-spi, added to intellij project