Fixed bugs in snippet editor. Added some snipprts and one example.