batch correction (m-file)

writes output as GE format with appropriate buffer