More code cleanup, downloading while in sleep mode

Implemented sleep mode (beta)
Cleaned up more unnecessary code