loop=0
Added check at top of main() to test if user is running as sudo. Print message and exit if not run as sudo.