Added the ability to add elements to an array. Close #39.