remove unused variable
use own docker pull method
properly parse exit code
formatting + jshint fixes