updated intermediate demos with new gists and fixed minor bugs