more verbose output, extracted functions
Merge pull request #5 from nodesource/rework

more verbose output, extracted functions