nicer code
cppcheck suggested the change
some more
sysinfo got a segfault handler now
some reformarting