moved input validator to separate file
updated package description
added validator.js
Merge pull request #1 from tlivings/master

Move validator to separate file.