added TimeOfDay enum, put TimeLoop into own file