minor bugs
all examples compile