updated script

cosmetic changes
executable only by root user
updated version