Partial refactoring in order to able to use the disambiguator as directly callable library.

Fixed require statements.
Removed global variables.
Removed TraceLogger. Will be replaced by standard logger.
Parameters are now passed through Disambiguator constructor.