review comments:
- factor dupe code into function
- also handle file names for binary files
- do not register binary flagged lang as pending
- added defineLanguage() docs for isBinary flag