matlab functions for reading/writing compressed arrays
updated matlab tools to work with new annotation file format