Implemented file input from stdin and added shebang