Finished script. Added excutability. Can now read from STDIN.