Correcting coding errors in function writeAlistFile.