commented code for sleepyPi