Add all syntax validation from -validator

With tests.
More imported files