demos working. now going to check things with Valgrind