added debug/evaluation functions; integrated those functions into shell