Fixed rerunning battery level after manual profile activation; added
plug and unplug detector in battery level