typo fixes

I'm also not sure about this comment:
11: # denotes session that's resetted