making File.open flags more explicit; test for log appending