Rewrite script with getopts
Add check if user is root