Converted a lot of camelCase to underscores and lowercase
added test for pre/post array equality
fixed threshold for sample_rate assertAlmostComplete