Some fixes :)

Hi,

I've added exception handling, fixed code loops and added a better output for errors (adb shell and missing config entry). As well fixed adb push to /data/local/tmp as it will save data as file "tmp" if the directory tmp doesn't exist.

Kind regards,
Bjoern