Fixed auto painting of hypnogram when only one fly is drawn
Added support for sleep latency