Added comments, fixed array+array math