Added a form for entering gist URL. Wrapped the code in a function. Work on examples.