added tempo changing function
updated and continued to develop examples