Added comments to Scanner