updating/pruning the code in random_snippets. Now, everything works, and useless ones have been deleted