Lexical converter implementation moved to separate file in the detail folder. minor fixes and improvements