Added suitable comments, Made root permissions optional