implementing disk_array_read

I put the disk_array_read function in but it is commented out in case it
doesnt work,
also added a free on line 222, and modified readFromArray variables to
match the disk_array_read function inputs, most of the changes are just
spacing from the visual studio's tab