Finished array implementation and added docstring