Streamline

streamlined the generation of raw files by removing redundant code that
wrote out the raw file headers separately from the actual TOA data. the
first 2 selections are done, 2 more to go