added sleep-timer and modified enviroment to trigger low power (< 0.1mA) sleep modes