Validate API examples. Rename files

`rootDirs`, not `root_dirs`