added functions for handling directories of audio files. "rmodes.m" is the highest-level function. -jm