Added a way to specify the outfile on the command line
Latin-1 characters are now supported