Tom: fix SampleAnalyzer, fix fileIO.py