Updated comments and modified array creation