improved sleep record detection
reordered legend labels
fixed compare diagrams, align range axis