Added shebang, changed all arguments to start from 0 instead of 1 now.