Validate the config object

+ review PR #5 first  
+ close #6