removed trailing spaces (cleanup); use backticks instead of system() call so that the output is displayed and also so it works on my system