added pauses in tutorial andfixed a bug