Cleanups.
Refactoring + empty stack fix.
Validators refactoring.
Localized validation error messages added to sample.