Updated the basic directive example, and created an advanced example.