updated and simplified some examples