updated, simplified, and began to add testing to analyze.py, finish unit tests, and analyze.py is done