Updated post with references, added gist