added swipe directive snippets
added key directive snippets
added if directive snippet
added open directive snippet