plotting pre-stack example works and some refactoring in segy.c