add classifykewords function and ouverload the write function for debuging