Update tutorial: remove unused vars after improved error checking