update for pep8
add docstring for run method