sleep_mode: NOT-final update

Added training. Fixed bugs. Keeps an eye on updates!