added a function which initializes pointers to an array making passing
arrays to functions easier to read and type.
corrected comment