added docs to sleep.R