edits to Kais2007 array sizes and Write2007()