added a #!
Added STDIN mode