check if sample has sub-arrays
change download interface, add some string-related fixes
go through API during write