updated analyzeData.py, basic functionality