Merge pull request #12 from greboid/master

Add a function based validator.
Switch to Java8 methods for TextFile.