updated demos, extended debug methods