standard deviations work properly (I think), moved a bunch of code around to more senisble areas, added a new module that will contain simple, reusable functions