Sleepy Time

Code is currently working. It now has everything but most of the
arguments and most of the returns. Almost there. Also add PDF of
flowchart here.