Added a shebang and changed permissions for better Unix support.