improve Kolexer (refs #2)