Edited main.py to change variable names to less unambiguous terms.
Added check for root permissions