limit the number of connected nodes.
parseInv(), work in progress.
parseInv() now works. Simple in memory storage.

Related to issue #1.