added systemd stuff and fixed the battery checker