Added scripts and supporting functions for preprocRHYData.m