Add End device Sleep
Update 	conditional branch
Updata Xbee schedule
Merge pull request #2 from Fuzyou/refactoring

Refactoring