use SUPPRESS_ROOT_WARNING
reformatted and commented SUPPRESS_ROOT_WARNING
refactored the running as root check

 - made it into a stand-alone function
 - added check_if_running_as_root function