file array control methods created

basis file and array control methods to allow for consitent memory
handling