Check table when Translator is created

and throw a CompilationException when table contains errors.
Also added TranslationException, which is thrown when a translation fails