added citation info for each example and some minor fixes