removed whitespace, added some comments.