Update script to extract and add snippets based on argument: extract or add. Add is not implemented.