tutorial updated, bugs fixed