SeriesReader and dumpmetadatadic() defined out of main (still cleaning up)