write sleep scoring to xml, basic implementation