Add joi to dependencies.
Validate options.
Add tests.
Merge pull request #3 from gergoerdosi/validation

Validation