minor fixes to snippet.class