adds snippets for factory and directive