improved error handling and omitting unwanted messages during install

I adjusted some sections in the install file. Mainly handling of return codes and omitting some stderr messages of systemctl.