fixed some bugs in the keword processing, now moving on to front end