minor changes in snippet.class get_data method (still under construction)