rehauled Cardinal basically from scratch; removed demo folder