Added ability to store and read arrays from files