cleaned up examples and removed debugging code