Prevented sample rate from being 0
switched from using regex to using strconv.parsefloat because I need the float value
added code for processing and storing stats