Added debug logging to AtomicWords class