Added separate functions to calculate noise and epoch
Streamlined sleep analysis