Correct many typos and grammar errors. Improve readability, fix indentation
Prevent potential bug if $name contains special characters
Remove unnecessary test about Scrivania (??)
Stop if not run by root