Update the examples of Validator API
Fix example formating
Update Validator documentation