move command validation into separate method
move errors into separate file.
allow user to pass in .xpdfrc file as global option or on initialize
update readme
explicitly set encoding using constant
skip re-encoding if valid encoding