data size adjusted to use whole sector
remove data type and now strictly an array for intermediary step
removed local copy of array to write out
finished change over to polling form