I started the process of pulling static utility functions from the main algorithm code. These functions are now in utils.py and mostly deal with mean and standard deviation calculations.