added command line stuff; added #! env stuff; added switch to match the spec in the tex file;