added documentation for array functions