Truthfully, this is a long story. However this is an excellent site (Credible) and holds a wealth of information all on and about sleep. (Brain Basics: Understanding Sleep: National Institute of Neurological Disorders and Stroke (NINDS)) You might find it interesting and helpful.