Recent changes as of 26 Oct 2013. More work to array and file read.