Added comments, removed unnecesary var in test.