Adapted snippets files structure.
Removed unneeded code.