added missing doctor command
more efficient, and less annoying logging
including npm, for more convenient upgrade