added comments, removed whitespace