removed unnecessary endof tag
removed a couple of unnecessary stuff (endof tags, ;)