Fixes median filters; Improves OCT header handling, code formatting