Feature validate strings and files

Tweak the library so that it accepts File objects and IO-alike objects in the constructor, not just URLs.
Also added trivial command-line for testing and as an example