added validation of exisiting of nodes in recursive call
better way to call some bin in node
changes after code review
Merge pull request #2 from fosco-maestro/master

Second pull request with additional changes after code review