add some documentation
add xscreensaver-command -lock
changed two ifs with only one if else statement
chmod +x the script