Fixed knowledge base so that it can accept infinitly many children, printing is greatly improved