Add a little better documentation.
Merge pull request #3 from gusajz/add_validity_logic

Add validity logic