Insomnia; and Other Disorders of Sleep by Lyman, Henry M.
 is a Project Gutenberg book, now on Github.