I found actually confronting the sleep issues I had much better at fixing it. Late day caffeine (you have to stop drinking it by 5 to get it down to a reasonably low level by 12), overly bright bedroom and unpredictable sleep schedule were my issues.
The windows program was great for years (f.lux) though until I did the above.
The windows program was great for years (f.lux) though until I did the above.