Merge pull request #1 from john6414/conn_err

Handles refused connections
added non-interactive mode
import sys missing
Merge pull request #8 from mpath/uptodate

Uptodate