Adjusted sleep thresholding

The threshold for sleep is not determined using the average of the awake
activity
Added Kalman filter

Made a function to run the kalman filter and added it to the sleep
analysis