minor changes, clean code and __repr__ in keyword class plus remove debug logging