Update document: Add "Write new validator" section