Some syntactic and semantic refactoring of the core file and deleting the dict2xml directory
Light refactoring of tests and adding a 'runtests' script