IO header, openFile method added