added strStartSleepTime parameter to SleepTilAfterMidnight Subroutine