fixed bugs in writing edi, turns out stations are processed with z positive up, which is default in Zonge processing software.