add comments and fix variable name. oops, forgot to add this. orz!