first version
Merge https://github.com/jobonaf/sleepR