validate arguments

close #5
Merge pull request #16 from martiner/validate

validate arguments