Fixed all compiler warnings. Some refactoring as well.
Begin work on the knowledge book.