Moved header to public property and fixed resetHeader where $num was not a variable
Adding test to prevent partial array being returned.
Adding tests