fix switch directive
add simple example
release 0.3.3