added raw data file, utility functions for matlab