running errors fixed. some logical errors remain as well as visualization errors.