array bug changes n commenting

refactored some commenting and changed some array parameters