I have updated sleep track with the ability to detect hours slept automatically with the iPhone 5s motion processor. This was actually a pretty fun project  and  was quite educational when it came to the capabilities and limitations of the 5s co-porcessor. I hope people find it useful.

Get sleep track 1.9 here: