added gist examples into demos folder; you can figure out where this bel...

Here are the gists example. Might as well toss these in here. I noticed the documentation doesn't show how to use afternm and box.c does exactly that.
Added comments to clarify what is going on there.