Nit-picking

This PR tidies up the code (unused imports and very small typo in variable name); and includes some clarification that I'd find helpful in the tutorial.