removed some obsolete code, cleaned up knowledge base stuff (whether or not it will be used)