Put license text for all sources and adjust algorithm for waking up