add deep sleep, add update interface, add header, fix traning print bug