Added a filter and average combination in the library, modified DATA_RECORD, and made spinup more flexible