Reduced complexity of run method

and moved handle_sudo() and on_data() to private
Handle wrong sudo passwords

closes #10
Task Bugfix
added root_dir variable
Improved sudo handling
Bugfixes