adding working sleep algorithms

Hi Maxim,

I finally got the sleep algorithm working! Give it a try with a geneactiv or awd file.

Best, Bart