Consolidated GenerateOpf class, now building and reading with XMLReader and XMLWriter