finished kwic
fixed problems with main