modify scrip to break out giant array into smaller arrays
add number of arrays to the resource file output
Merge pull request #3 from piaw/master

fix script to clean up &, as well as split array into smaller arrays