Updates, knowledge class modified, errors fixed

demos and stuff running too.