fixed indention
exitcode are integers
remove tmpfile
code beautyness